import React from 'react'
import { AppRegistry, YellowBox } from 'react-native';
import Router from './router';
import dva from './utils/dva';
import routerModel from './models/router';
import homeModel from './models/home';
import UserModel from './models/account/User';

YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);
const app = dva({
    initialState: {},
    models: [routerModel, homeModel, UserModel],
    onError(e) {
        console.log('onError', e)
    },
})
const App = app.start(<Router />)



AppRegistry.registerComponent('easyblog', () => App);
